package com.qf.pojo;

import java.util.*;

/**
 * @author 千锋教育
 * @Company http://www.mobiletrain.org/
 * @Version 1.0
 */
public class User {

    public void init(){
        System.out.println("对象创建了");
    }

    public void destroy(){
        System.out.println("对象销毁了");
    }

    public User(){

    }
    public User(int id, String username, int age){
        this.id =id;
        this.username = username;
        this.age = age;
    }

    public User(int id, String username, String gender){
        this.id =id;
        this.username = username;
        this.gender = gender;
    }
    private int id;
    private String username;
    private String gender;
    private int age;
    private Date birthday;
    private IdCard idCard;

    public void setArr(String[] arr) {
        this.arr = arr;
    }

    public void setList(List<String> list) {
        this.list = list;
    }

    public void setSet(Set<String> set) {
        this.set = set;
    }

    private String[] arr;
    private List<String> list;
    private Set<String> set;

    private Map<String , String> map;

    private Properties prop;

//    @Override
//    public String toString() {
//        return "User{" +
//                ", arr=" + Arrays.toString(arr) +
//                ", list=" + list +
//                ", set=" + set +
//                ", map=" + map +
//                ", prop=" + prop +
//                '}';
//    }

    public void setMap(Map<String, String> map) {
        this.map = map;
    }

    public void setProp(Properties prop) {
        this.prop = prop;
    }

    public void setIdCard(IdCard idCard) {
        this.idCard = idCard;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public void setAge(int age) {
        this.age = age;
    }

}
